package com.zcxy.fast.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zcxy.fast.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.annotation.JsonFormat;
import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 附表
 *
 * @author zcc
 * @email  860474958@qq.com
 * @date   2021-01-15 14:00:36
 */
@Data
@TableName(value ="child_table",autoResultMap = true)
@ApiModel(value = "ChildTable", description = "附表")
public class ChildTable extends BaseEntity {

    @NotEmpty(message = "name为必填字段")
    @Length(max = 100, message = "name 超出最大长度：100")
    @ApiModelProperty(value = " 字典名称", required = false)
    private String name ;

    @NotEmpty(message = "code为必填字段")
    @Length(max = 32, message = "code 超出最大长度：32")
    @ApiModelProperty(value = " 编码", required = false)
    private String code ;

    @Length(max = 512, message = "remark 超出最大长度：512")
    @ApiModelProperty(value = " 描述", required = false)
    private String remark ;

    @ApiModelProperty(value = " 排序", required = false)
    private Integer sortNo ;

    @TableId(type = IdType.UUID)
    @Length(max = 32, message = "id 超出最大长度：32")
    @ApiModelProperty(value = " 主键", required = false)
    private String id ;

    @Length(max = 32, message = "dictId 超出最大长度：32")
    @ApiModelProperty(value = " 字典id", required = false)
    private String dictId ;

    @Length(max = 255, message = "dictCode 超出最大长度：255")
    @ApiModelProperty(value = " 字典编码", required = false)
    private String dictCode ;

    @Length(max = 1, message = "status 超出最大长度：1")
    @ApiModelProperty(value = " ", required = false)
    private String status ;



}
